import json
import logging
import requests

def 上传物流轨迹(data):
    url = 'http://192.168.16.240:8001/api/customerservice/TaoBaoShouHou/ImportLogisticsTrackRPA'
    headers = {'Content-Type': 'application/json'}
    data = json.dumps(data)
    response = requests.post(url, data=data, headers=headers)
    if response.status_code == 200:
        print(response.text)
        print('上传成功')
    else:
        print(response.status_code, response.text)
        print('上传失败')
